package com.miao.websecurity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 系统角色表(SysRole)表实体类
 *
 * @author makejava
 * @since 2021-02-07 15:37:03
 */
@SuppressWarnings("serial")
public class SysRole extends Model<SysRole> {
    //角色id
    @TableId(type = IdType.INPUT)
    private String roleId;
    //角色名称
    private String roleName;
    //角色描述
    private String roleDes;
    //角色类型 0 店铺 1平台
    private boolean roleType;


    public SysRole() {
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDes() {
        return roleDes;
    }

    public void setRoleDes(String roleDes) {
        this.roleDes = roleDes;
    }

    public boolean isRoleType() {
        return roleType;
    }

    public void setRoleType(boolean roleType) {
        this.roleType = roleType;
    }

    @Override
    public String toString() {
        return "SysRole{" +
                "roleId='" + roleId + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleDes='" + roleDes + '\'' +
                ", roleType=" + roleType +
                '}';
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }
}
